package com.qs.education.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.qs.education.bean.api.ResponseListBean;
import com.qs.education.bean.entity.EducationSubject;
import com.qs.education.service.ISubjectAPPService;

/**
 * @class 
 * @author Leon
 * @description
 * @date Nov 26, 2018
 */
@RestController
@RequestMapping("/subject")
public class EducationSubjectController {
	
	@Autowired
	private ISubjectAPPService iSubjectAPPService;
	
	/**
	 * @Description 获取所有学科
	 * @author Leon
	 * @date   Nov 26, 2018
	 * @param  
	 * @return ResponseListBean<EducationSubject>
	 */
	@RequestMapping("/getAllSubject")
	public ResponseListBean<EducationSubject> getAllSubject(){
		ResponseListBean<EducationSubject> subjectList = new ResponseListBean<EducationSubject>();
		subjectList = iSubjectAPPService.getAllSubject();
		return subjectList;
	}
}
